<?php 
/**
 * Elgg secondary sidebar contents
 *
 * You can override, extend, or pass content to it
 *
 * @uses $vars['sidebar_alt] HTML content for the alternate sidebar
 */

$sidebar = elgg_extract('sidebar_alt', $vars, '');

echo $sidebar;

if (elgg_get_context()=='activity'
 || elgg_get_context()=='groups'
) {
echo "<h4>Active Projects:</h4>";
echo elgg_list_entities(array(
	'type'=>'group',
	'full_view' => false,
	'pagination' => false,
	'offset' => 0,
	));

echo "<h4>Active Members:</h4>";
echo elgg_list_entities(array(
	'type'=>'user',
	'full_view' => false,
	'pagination' => false,
	'list_type' => 'gallery',
	'offset' => 0,
	));
}

